#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
int main()
{
	//int y = 0, m = 0, d = 0;
	//scanf("%d-%d-%d", &y, &m, &d);
	//int f = 0, s = 0;
	//scanf("%d:%d", &f, &s);
	////printf("%4d-%.2d-%.2d", y, m, d);
	//printf("%4d-%.2d-%.2d %.2d:%.2d", y, m, d,f,s);

	int n = 0, a[10] = { 0 }, i = 1, count = 0;
	scanf("%d", &n);//1234
	while (n)
	{
		a[i] = n % 10;
		n /= 10;
		i++;
		count++;
	}
	for (i=count; i > 0; i--)
	{
		printf("%d", a[i]);
	}

	//printf("%d",a);//1





	return 0;
}